
<div id ="fb-root"></div>
<script type="text/javascript">
    FB.init({ appId:'155708111157721', cookie:true, status:true, xfbml:true });
    FB.ui(
        {
            method: 'feed',
            message: 'I have just uploaded a photo to Picdrops apps',
            link: 'http://www.facebook.com/apps/application.php?id=155708111157721',
            description : 'created by Ecky - Rezan - Andut',
            picture: 'http://img864.imageshack.us/img864/9007/logoat.jpg'
        },
        function(response) {
            if (response && response.post_id) {
                alert('Post was published.');
                window.top.location = "<?php echo URL::site($url) ?>";
            } else {
                alert('Post was not published.');
                window.top.location = "<?php echo URL::site($url) ?>";
            }
        }
    );
</script>